package model.layer;

import java.util.ArrayList;

public class Recipe {
	
	private int id;
	private String name;
	private String typeOf;
	private int servings;
	private int photoId;
	private String summary;
	private ArrayList<Product> ingredients;
	
	public Recipe()
	{
		ingredients = new ArrayList<Product>();
	}

	public int getId() {
		
		return id;
		
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTypeOf() {
		return typeOf;
	}

	public void setTypeOf(String typeOf) {
		this.typeOf = typeOf;
	}

	public int getServings() {
		return servings;
	}

	public void setServings(int servings) {
		this.servings = servings;
	}

	public int getPhotoId() {
		return photoId;
	}

	public void setPhotoId(int photoId) {
		this.photoId = photoId;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}
	public void addIngredients(Product p)
	{
		ingredients.add(p);
	}
	public void removeIngredients(int index)
	{
		ingredients.remove(index);
	}
	public ArrayList<Product> getIngredients() {
		return ingredients;
	}
	public void setIngredients(ArrayList<Product> ingredients) {
		this.ingredients = ingredients;
	}

}
